package hr.entity.DO;

import hr.utils.CommonUtils;
import lombok.Data;

import java.time.LocalDate;

/**
 * Description
 *
 * @author 卓子恒
 * @date: 2023/12/15 - 13:01
 * @apiNote
 */
@Data
public class EmployeeMovementDO {
    private Long employeeId;  //人员id
    private Long movementId;  //调动id
    private String name;  //员工姓名
    private String fromDepartmentName;  //上一个部门名称
    private String toDepartmentName;  //目标部门名称
    private String fromPositionName;  //上一个岗位名称
    private String toPositionName;  //目标岗位名称
    private Long movementDate;  //调动时间
    private String movementDateStr;  //调动时间

    public void setMovementDate(Long movementDate) {
        this.movementDate = movementDate;
        this.movementDateStr = CommonUtils.convertTimestampToYMDAndTime(movementDate);
    }
}
